<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>

<html>
       <f:view>
          <head>
             <title>
                <h:outputText value="#{rentaBike.storeName}"/>
             </title>
          </head>

          <body>
             <h1><h:outputText value="#{rentaBike.storeName}"/></h1>

             <h:outputText value="Edit a bike"/>

             <h:form>
                <h:dataTable value="#{rentaBike.bikes}" var="bike">
                   <h:column>
                      <h:commandLink action="#{editBikeController.editBike}">
                         <h:outputText
                    value="#{bike.manufacturer} - #{bike.model}"/>

                         <f:param name="bikeSerialNo" value="#{bike.serialNo}"/>
                      </h:commandLink>
                   </h:column>
                </h:dataTable>

                <h:outputText value="<br/><br/>" escape="false"/>

                <h:commandLink action="#{editBikeController.newBike}">
                   <h:outputText value="Add a new bike"/>
                </h:commandLink>
             </h:form>
          </body>
       </f:view>
    </html>